<script>
	import { BASE_URL } from '@/config/env.js'
	export default {
		globalData:{
			publicUrl: BASE_URL, //公共的请求路径
			statusBarHeight: 0 // 状态栏高度
		},
		onLaunch: function() {
			console.log('App Launch') 
			const that = this;
			uni.getSystemInfo({
				success:(res)=>{
					// 获取状态栏高度
					that.globalData.statusBarHeight = res.statusBarHeight
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import "@/common/css/common.css";
	// @import "@/common/css/ElderMode.scss";
</style>
